package com.liming.model;

import java.util.List;

public class Goods {
	private int goodsid;
	private String goodsname;//商品名称
	private int typeid;//商品的类别 id
	private double price;//商品的单价
	private int salenum;//销售量
	private int shopid;//商店id  商品属于哪个商家
	private int goodsstatus;//商品状态 是否下架 0下架 ，1上架
	private int ishot;//是否热销 1 热销，0不热销
	private String goodsrc;
	public String getGoodsrc() {
		return goodsrc;
	}
	public void setGoodsrc(String goodsrc) {
		this.goodsrc = goodsrc;
	}
	public static final Goods NULLGOODS = new Goods();
	public int getGoodsid() {
		return goodsid;
	}
	public void setGoodsid(int goodsid) {
		this.goodsid = goodsid;
	}
	public String getGoodsname() {
		return goodsname;
	}
	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}
	public int getTypeid() {
		return typeid;
	}
	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getSalenum() {
		return salenum;
	}
	public void setSalenum(int salenum) {
		this.salenum = salenum;
	}
	public int getShopid() {
		return shopid;
	}
	public void setShopid(int shopid) {
		this.shopid = shopid;
	}
	public int getGoodsstatus() {
		return goodsstatus;
	}
	public void setGoodsstatus(int goodsstatus) {
		this.goodsstatus = goodsstatus;
	}
	public int getIshot() {
		return ishot;
	}
	public void setIshot(int ishot) {
		this.ishot = ishot;
	}
	
	@Override
	public String toString() {
		return String.format("商品id:%d，名字：%s，价格：%s", goodsid,goodsname,String.valueOf(price));
	}
}
